package com.example.jetpacktest.lifecycle

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.jetpacktest.R
import com.example.jetpacktest.view.LifeCycleView

class LifeCycleActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_life_cycle)

        lifecycle?.addObserver(LifeCycleView(this))
    }
}
